var score = 0;

function addpoints(points) {
score = score + points;
document.getElementsByTagName("input")['score'].value = score;
}
